import request from '@/utils/request'

export const apiSave = (testPaperContent, title) => {
  return request.post('/admin/testPaper/add', {
    title,
    testPaperContent,
  })
}

export const apiModify = (testPaperContent, id) => {
  return request.put('/admin/testPaper/edit', {
    testPaperContent,
    id
  })
}

export const apiPage = (pageNum, pageSize) => {
  return request.get(`/admin/testPaper/getListPage?pageNum=${pageNum}&pageSize=${pageSize}`)
}

export const apiRemove = (id) => {
  return request.delete('/admin/testPaper/deleteById/' + id)
}
